using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dao;
using Entities;
using System.Collections.Generic;
namespace Doctors_WebForum.Admin.UIControls
{
    public partial class Accounts : System.Web.UI.UserControl
    {
        UserData _user = null;
        public Accounts()
        {
            _user = new UserData();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            RaiseClientEvent();
        }
        protected void RaiseClientEvent()
        {
            AjaxPro.Utility.RegisterTypeForAjax(typeof(Doctors_WebForum.Admin.UIControls.Accounts));
        }

        [AjaxPro.AjaxMethod]
        public IList<User> GetAllUser()
        {
            return _user.GetAll();
        }

        [AjaxPro.AjaxMethod]
        public bool Delete(string listIDs)
        {
            return _user.DeleteById(100);
        }
    }
}